const express=require("express");
const expressStatic=require("express-static");
const fs=require("fs");

let server = express();
server.listen(80);
server.get('/',(req,res,next)=>{
  console.log(req.url);
  next();
});

server.use(expressStatic("./dist/index.html"));

server.use((req,res)=>{
  console.log(req.url);
  res.send({status:500,msg:"网址错误"}).end();
});
